package com.example.springbootsfzy.mapper;

import com.example.springbootsfzy.domain.CourseQuestions;

import java.util.List;

/**
* @author 30658
* @description 针对表【course_questions】的数据库操作Mapper
* @createDate 2025-01-02 15:11:36
* @Entity com.example.springbootsfzy.domain.CourseQuestions
*/
public interface CourseQuestionsMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(CourseQuestions record);

    int insertSelective(CourseQuestions record);

    CourseQuestions selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CourseQuestions record);

    int updateByPrimaryKey(CourseQuestions record);

    //查询所有问题和咨询师昵称
    List<CourseQuestions> selectAll();
    //根据课程id查询问题
    List<CourseQuestions> selectByCourseId(Integer courseId);

    //根据咨询师id查询问题
    List<CourseQuestions> selectByConsultantId(Integer consultantId);

}
